/* *****************************************************************************************
 
Made by www.Flashphoner.com, all rights reserved.
These sources can only be used for working with Flashphoner server.
If you want use this to create your own application (separate from Flashphoner server) � 
please contact support@flashphoner.com 

******************************************************************************************/

package com.flashphoner.api
{	
	import com.adobe.cairngorm.control.FrontController;
	
	/**
	 * Dispatcher for all application events
	 * **/	
	internal class PhoneController extends FrontController 
	{	
		private static var UUID : String = "33de0550-44d6-4550-b133-43344716776a";
		
		public function PhoneController()
		{
			init();
		} 

		private function init(): void
		{	
			addCommand(CallEvent.TALK , CallCommand );
			addCommand(CallEvent.HOLD , CallCommand );
			addCommand(CallEvent.OUT , CallCommand);
			addCommand(CallEvent.IN , CallCommand);
			addCommand(CallEvent.BUSY, CallCommand);
			addCommand(CallEvent.FINISH,CallCommand);
			addCommand(CallEvent.SESSION_PROGRESS,CallCommand);
			addCommand(CallEvent.VIDEO_FORMAT_CHANGED,CallCommand);
			
			addCommand(MainEvent.CONNECTED,MainCommand);	
			addCommand(MainEvent.REGISTERED,MainCommand);
			addCommand(MainEvent.DISCONNECT,MainCommand);	
			
		}
	}
}